package com.ryan.quartz.job;

import org.quartz.Job;
import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Rayn on 2017/10/2.
 * @email liuwei412552703@163.com.
 */
public class HelloQuartzJob implements Job {

    private static final Logger LOG = LoggerFactory.getLogger(HelloQuartzJob.class);

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobDetail jobDetail = context.getJobDetail();
        String description = jobDetail.getDescription();

        System.out.println("Job Description : " + description);
    }
}
